package top.airprogram.user.entity;

import java.util.List;

public class Teacher {
    private Integer teachid;

    private String teachname;

    private String teachsex;

    private List<Student> students;

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public Integer getTeachid() {
        return teachid;
    }

    public void setTeachid(Integer teachid) {
        this.teachid = teachid;
    }

    public String getTeachname() {
        return teachname;
    }

    public void setTeachname(String teachname) {
        this.teachname = teachname == null ? null : teachname.trim();
    }

    public String getTeachsex() {
        return teachsex;
    }

    public void setTeachsex(String teachsex) {
        this.teachsex = teachsex == null ? null : teachsex.trim();
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teachid=" + teachid +
                ", teachname='" + teachname + '\'' +
                ", teachsex='" + teachsex + '\'' +
                ", students=" + students +
                '}';
    }

    public Teacher(Integer teachid, String teachname, String teachsex) {
        this.teachid = teachid;
        this.teachname = teachname;
        this.teachsex = teachsex;

    }
}